<?php
$arr = db_find_one('fq_from',array('tid'=>$tid));
if($arr==true){
//print_r($arr);
$fromname=$arr['fromname'];
$fromurl=$arr['fromurl'];
$byname=$arr['byname'];
}else{
$fromname='';
$fromurl='';
$byname='';
}

//echo '收藏来源：'.$fromname.'收藏地址：'.$fromurl.'作者：'.$byname;
?>
<br><br>
<?php if($fromname!=='' or $byname!==''){ ?>
<p></p>
                            <?php 
							
								if($fromurl==''){$fromurl='http://www.baidu.com';}
								if($fromname!=='' & $byname==''){
								 echo '<a href="'.$fromurl.'""><span style="font-family: sans-serif; font-size: 12px; color: rgb(165, 165, 165);">收藏来源:'.$fromname.'</span></a>  '.'<a><span style="font-family: sans-serif; font-size: 12px; color: rgb(165, 165, 165);">作者:'.$byname.'</span></a>';
								}elseif($fromname=='' & $byname!==''){
								  echo '<a><span style="font-family: sans-serif; font-size: 12px; color: rgb(165, 165, 165);">收藏来源于网络  作者:'.$byname.'</span></a>';
								}elseif($fromname!=='' & $byname!==''){
								  echo '<a href="'.$fromurl.'" "><span style="font-family: sans-serif; font-size: 12px; color: rgb(165, 165, 165);">收藏来源:'.$fromname.'</span></a>  '.'<a><span style="font-family: sans-serif; font-size: 12px; color: rgb(165, 165, 165);">作者:'.$byname.'</span></a>';
								}

							 ?>
<?php } ?>

